import request from '@/utils/request'

export function getPaymentList(data) {
  return request({
    url: '/payment/page',
    method: 'post',
    data
  })
}

export function addPayment(data) {
  return request({
    url: '/payment',
    method: 'post',
    data
  })
}

export function getPayment(id) {
  return request({
    url: `/payment/${id}`,
    method: 'get'
  })
}

export function confirmPay(id) {
  return request({
    url: `/payment/confirmPay/${id}`,
    method: 'post'
  })
}
